#include <stdio.h>

#include "mt.c"

int main()
{
	int moveSelect;
	int histogram[257];
	int i,j,k;

	init_genrand((long)-12356);

	for(i = 0; i < 257; i++) {
		histogram[i] = 0;
	}

	for(j = 0; j < 100000; j++) {
		moveSelect = ((int)(genrand_real()*256 ));  

		if (moveSelect < 0) moveSelect = 0;

		histogram[moveSelect]++;
	}

	for(k = 0; k < 257; k++) {
		printf("[%d] - %d\n", k, histogram[k]);
	} 
}
